package com.manager.gen.module.platform.core.dao;

//                   _ooOoo_    
//                  o8888888o    
//                  88" . "88    
//                  (| -_- |)    
//                   O\ = /O    
//               ____/'---'\____    
//              /. '\\| : |//' .\    
//             // \\||| : |||// \\   
//            // _|||||-:-|||||_ \\    
//           // | | \\\ - /// | | \\
//           || |_| ''\---/'' |_| || 
//            \ .-\___/'-'\___/-. /    
//          ___\. .' /--.--\ '. ./___    
//        .""'< `.___\_<|>_/___.' >'"".    
//       | |: `- \`.|'\ _ /'|.`/ -` :| |    
//        \ \ `-. \_ __\ /__ _/ .-` / /    
//======'-.___`-.___\_______/___.-`___.-'======    
//                   '=---='    
//.................................................    
//写一哈代码，你就青叫唤；信龟儿设计，你逗是傻逼。
//永无Bug，啷个可能！求佛主保佑也没球用！

import java.util.List;
import java.util.Map;

import com.manager.commons.mybatis.dao.GenericDao;
import com.manager.commons.mybatis.annotation.MyBatisDao;
import com.manager.gen.module.platform.core.entity.PlatformUser;
import com.manager.gen.module.platform.core.entity.view.PlatformUserRoleView;
import com.manager.gen.module.platform.core.entity.view.PlatformUserView;
import com.manager.gen.module.platform.core.entity.view.SelectView;

/**
 * PlatformUserDao
 *
 * @author H
 * @version 1.0
 */
@MyBatisDao
public interface PlatformUserDao extends GenericDao<PlatformUser> {

    int countView(Map<String, Object> map);

    List<PlatformUserView> queryView(Map<String, Object> map);

    PlatformUser login(Map<String, Object> map);

    int updatePwd(Map<String, Object> map);

    int resetPwd(Map<String, Object> params);


    int updateInfoArchive(Map<String, Object> params);

    PlatformUserView findView(Map<String, Object> params);

    PlatformUserView findAccountView(String account);

    String findPwd(Map<String, Object> params);


    List<PlatformUser> queryAll();

    Map<String, Object> checkPhoneCount(String phone);

    int insertUserRecord(Map<String, Object> params);

    int insertUserArchive(Map<String, Object> params);

    int updateUserArchiveMap(Map<String, Object> params);


    List<PlatformUserRoleView> queryRolesByUser(Map<String, Object> map);

    int deleteUserRole(Map<String, Object> params);

    int insertUserRole(Map<String, Object> params);

    int updateLoginInfo(Map<String, Object> params);

    List<SelectView> queryAllRole();
}